Ext.define('carManage.view.carInfo.SearchForm', {
    extend: 'Ext.form.Panel',
    alias: 'widget.searchForm',
    frame: false,
     bodyStyle: 'padding: 6px',
    items: [{
            xtype: 'container',
            anchor: '100%',
            layout: 'hbox',
            items: [{
                    xtype: 'container',
                    flex: 3,
                    layout: 'anchor',
                    items: [{
                            xtype: 'combo',
                            fieldLabel: '车牌号码',
                            name: 'code_from',
                            id: 'code_from',
                            displayField: 'name',
                            valueField: 'name',
                            emptyText: '车牌号码',
                            anchor: '95%',
                            typeAhead: true,
                            queryParam: 'name',
                            autoSelect: false,
                            triggerAction: 'all',
                            store: 'CarList_store'
                        }, {
                            xtype: 'combo',
                            fieldLabel: '状态',
                            hiddenName: 'logo',
                            store: 'StatesOfCarsStore',
                            displayField: 'name',
                            valueField: 'value',
                            typeAhead: true,
                            triggerAction: 'all',
                            emptyText: '---请选择---',
                            anchor: "95%",
                            id: 'states_from',
                            selectOnFocus: true
                        }]
                },
                {
                    xtype: 'container',
                    flex: 3,
                    layout: 'anchor',
                    items: [
                        {
                            xtype: 'combo',
                            fieldLabel: '产权单位名称',
                            hiddenName: 'company',
                            store: 'CompanyStore',
                            displayField: 'name',
                            valueField: 'name',
                            typeAhead: true,
                            triggerAction: 'all',
                            emptyText: '---请选择---',
                            anchor: "95%",
                            id: 'company_from',
                            selectOnFocus: true
                        },
                        {
                            xtype: 'combo',
                            fieldLabel: '使用部门名称',
                            hiddenName: 'department',
                            store: 'DepartmentStore',
                            displayField: 'name',
                            valueField: 'name',
                            typeAhead: true,
                            triggerAction: 'all',
                            emptyText: '---请选择---',
                            anchor: "95%",
                            id: 'department_from',
                            selectOnFocus: true
                        }]},
                {
                    xtype: 'container',
                    flex: 3,
                    layout: 'anchor',
                    items: [
                        {
                            xtype: 'combo',
                            fieldLabel: '车辆类型',
                            hiddenName: 'type',
                            store: 'CarTypeStore',
                            displayField: 'name',
                            valueField: 'name',
                            typeAhead: true,
                            triggerAction: 'all',
                            emptyText: '---请选择---',
                            anchor: "95%",
                            id: 'type_from',
                            selectOnFocus: true
                        },
                        {
                            xtype: 'combo',
                            fieldLabel: '资产属性',
                            hiddenName: 'attributes',
                            store: 'ZiChanStore',
                            displayField: 'name',
                            valueField: 'name',
                            typeAhead: true,
                            triggerAction: 'all',
                            emptyText: '---请选择---',
                            anchor: "95%",
                            id: 'attributes_from',
                            selectOnFocus: true
                        }]},
                {
                    xtype: 'container',
                    flex: 1,
                    layout: 'anchor',
                    items: [{
                            xtype: "hidden",
                            
                            text: "查  询",
                            width: 60
                        },{
                            xtype: "button",
                            id: 'query_tbar',
                            text: "查  询",
                            width: 60
                        }]
                }]

        }
    ],
    initComponent: function() {
        this.callParent(arguments);
    }
});